using UnityEngine;
namespace Fusion.Utilities.Counters
{
    public class CounterActiveMono : MonoBehaviour
    {
        CounterActive counter = null;

        public void Start()
        {
            Init();
        }

        private void Init()
        {
            if (counter == null)
            {
                counter = new CounterActive(gameObject);
            }
        }

        public void SetActive(bool value)
        {
            Init();
            counter.SetActive(value);
        }
    }
}


